import React, { Component } from 'react';
import CKEditor from 'ckeditor4-react';

class App extends Component {


    onChange(...props){
        const [ evt ] = props
        console.log( evt )

    }


    render() {
        return (
            <div className="App">
                <h2>Using CKEditor 4 in React</h2>
                <CKEditor
                    data="<p>Hello from CKEditor 4!</p>"
                    type="inline"
                    config={ {
                       // toolbar: [ [ 'Bold' ] ],
                        language: 'zh-cn',
                    } }
                    readOnly={false}
                    onChange={this.onChange}


                />
            </div>
        );
    }
}

export default App;

